﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WeProjectsModel;

namespace WeProjects.Models
{
    public class ProjectViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public int? ParentID { get; set; }
        public int? OwnerID { get; set; }
        /// <summary>
        /// Project owner's username.
        /// </summary>
        public string OwnerName { get; set; }
        public string OwnerDisplayName { get; set; }
        public string SerialNumber { get; set; }
        [UIHint("tinymce_jquery_full"), AllowHtml]
        public string Descritpion { get; set; }
        public DateTime? CreationDate { get; set; }
        public bool? SubProjectsFileUploadAllowed { get; set; }
        public bool? TaskDueTimeEnforcement { get; set; }
        public IEnumerable<Task> Tasks { get; set; }
        public int NewsCount { get; set; }
        public int MemberCount { get; set; }
        public int DocumentCount { get; set; }
        public int TaskCount { get; set; }
    }
}